﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace WPF各种控件样式.linq
{
    /// <summary>
    ///Linq
    /// </summary>
    public partial class LingDemo : Window
    {
        Action<string> messageAction;
        public LingDemo()
        {
            InitializeComponent();
            if (Environment.GetCommandLineArgs().Length > 1)
            {
                messageAction = showin;
                messageAction("333");
            }

        }

        private void showin(string ss)
        {
            MessageBox.Show("33");
        }

        List<string> List = new List<string>();
        public void LinqSub()
        {
            List<string> result = List.Where(o => o.Equals("22")).ToList();
        }
    }
}
